﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MastePage.master" AutoEventWireup="true" CodeFile="Registracija.aspx.cs" Inherits="_Default" %>

<%@ Register assembly="EO.Web" namespace="EO.Web" tagprefix="eo" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <style type="text/css">
        .style7
        {
            width: 500px;
        }
        .style8
        {
            text-align: left;
        }
        .style9
        {
            text-align: right;
        }
        .style10
        {
            text-align: center;
        }
        .style11
        {
            text-align: left;
            height: 51px;
            font-style: italic;
            font-weight: 700;
            font-family: Arial;
            font-size: large;
        }
        .style13
        {
            font-weight: normal;
        }
        .style14
        {
            text-align: right;
            font-weight: normal;
        }
    </style>
</asp:Content>

<asp:Content ID="Content2" runat="server" 
    contentplaceholderid="ContentPlaceHolder1">
    <table align="center" class="style7">
        <tr>
            <td class="style11" colspan="3">
                Внесете ги вашите податоци</td>
        </tr>
        <tr>
            <td class="style9">
                &nbsp;</td>
            <td class="style8" colspan="2">
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style14">
                Koрисничко име*</td>
            <td class="style8" colspan="2">
                <asp:TextBox ID="txtIme" runat="server" Width="350px" 
                    ValidationGroup="valGroup"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="style9">
                <span class="style13"></td>
            <td class="style8" colspan="2">
                </span></td>
        </tr>
        <tr>
            <td class="style14">
                Email*</td>
            <td class="style8" colspan="2">
                <asp:TextBox ID="txtMail" runat="server" width="350px" 
                    ValidationGroup="valGroup"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="style9">
                <span class="style13"></td>
            <td class="style8" colspan="2">
                </span></td>
        </tr>
        <tr>
            <td class="style14">
                Лозинка*</td>
            <td class="style8" colspan="2">
                <asp:TextBox ID="txtLoz" runat="server" height="22px" width="350px" 
                    TextMode="Password" ValidationGroup="valGroup"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="style9">
                <span class="style13"></td>
            <td class="style8" colspan="2">
                </span></td>
        </tr>
        <tr>
            <td class="style14">
                Потврди лозинка*</td>
            <td class="style8" colspan="2">
                <asp:TextBox ID="txtLozPot" runat="server" height="22px" width="350px" 
                    TextMode="Password" ValidationGroup="valGroup"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="style9">
                <span class="style13"></td>
            <td class="style8" colspan="2">
                </span></td>
        </tr>
        <tr>
            <td class="style14">
                &nbsp;</td>
            <td class="style9" colspan="2">
                <asp:Button ID="btnPodnesi" runat="server" onclick="btnPodnesi_Click" 
                    Text="Регистрирај се" ValidationGroup="valGroup" />
            </td>
        </tr>
        <tr>
            <td class="style8">
                <span class="style13"></td>
            <td class="style8" colspan="2">
                <asp:Label ID="lblPoraka" runat="server" ForeColor="Red"></asp:Label>
                </span>
            </td>
        </tr>
        <tr>
            <td class="style8">
                <span class="style13"></td>
            <td class="style8" colspan="2">
                </span></td>
        </tr>
        <tr>
            <td class="style8">
                <span class="style13"></td>
            <td class="style10">
                <asp:LinkButton ID="lnkPocetna" runat="server"  
                    Visible="False" onclick="lnkPocetna_Click">Почетна</asp:LinkButton>
                </span>
            </td>
            <td class="style10">
                <asp:LinkButton ID="lnkNastan" runat="server" Visible="False" 
                    onclick="lnkNastan_Click" Font-Bold="False">Настан</asp:LinkButton>
            </td>
        </tr>
        <tr>
            <td class="style14">
                &nbsp;</td>
            <td class="style8" colspan="2">
                <asp:ValidationSummary ID="ValidationSummary1" runat="server" ForeColor="Red" 
                    ValidationGroup="valGroup" Font-Bold="False" />
            </td>
        </tr>
        <tr>
            <td class="style9">
                <span class="style13"></td>
            <td class="style8" colspan="2">
                <asp:CompareValidator ID="CompareValidator1" runat="server" 
                    ControlToCompare="txtLozPot" ControlToValidate="txtLoz" Display="None" 
                    ErrorMessage="Лозинката не се совпаѓа" ForeColor="Red" 
                    ValidationGroup="valGroup"></asp:CompareValidator>
                </span>
            </td>
        </tr>
        <tr>
            <td class="style9">
                <span class="style13"></td>
            <td class="style8" colspan="2">
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                    ControlToValidate="txtIme" Display="None" ErrorMessage="Внесете име и презиме" 
                    ForeColor="Red" ValidationGroup="valGroup"></asp:RequiredFieldValidator>
                </span>
            </td>
        </tr>
        <tr>
            <td class="style9">
                <span class="style13"></td>
            <td class="style8" colspan="2">
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                    ControlToValidate="txtMail" Display="None" ErrorMessage="Внесете Еmail" 
                    ForeColor="Red" ValidationGroup="valGroup"></asp:RequiredFieldValidator>
                </span>
            </td>
        </tr>
        <tr>
            <td class="style9">
                <span class="style13"></td>
            <td class="style8" colspan="2">
                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                    ControlToValidate="txtLoz" Display="None" ErrorMessage="Внесете лозинка" 
                    ForeColor="Red" ValidationGroup="valGroup"></asp:RequiredFieldValidator>
                </span>
            </td>
        </tr>
        <tr>
            <td class="style9">
                <span class="style13"></td>
            <td class="style8" colspan="2">
                <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
                    ControlToValidate="txtLozPot" Display="None" ErrorMessage="Потврдете лозинка" 
                    ForeColor="Red" ValidationGroup="valGroup"></asp:RequiredFieldValidator>
                </span>
            </td>
        </tr>
        <tr>
            <td class="style9">
                <span class="style13"></td>
            <td class="style8" colspan="2">
                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                    ControlToValidate="txtLoz" Display="None" 
                    ErrorMessage="Лозинката мора да е од 6 до 12 знаци" ForeColor="Red" 
                    ValidationExpression=".{6,12}" ValidationGroup="valGroup"></asp:RegularExpressionValidator>
                </span>
            </td>
        </tr>
        <tr>
            <td class="style9">
                <span class="style13"></td>
            <td class="style8" colspan="2">
                <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" 
                    ControlToValidate="txtMail" Display="None" ErrorMessage="Внесете валиден Email" 
                    ForeColor="Red" 
                    ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" 
                    ValidationGroup="valGroup"></asp:RegularExpressionValidator>
                </span>
            </td>
        </tr>
        <tr>
            <td class="style9">
                <span class="style13"></td>
            <td class="style8" colspan="2">
                </span></td>
        </tr>
        <tr>
            <td class="style9">
                &nbsp;</td>
            <td class="style8" colspan="2">
                &nbsp;</td>
        </tr>
    </table>
    
    
</asp:Content>


